package com.baidumap.administrator.happystudy.utils;

import com.socks.library.KLog;

import java.lang.reflect.Field;

/**
 * 描述：
 * 作者：xiaoxing on 17/5/2 09:52
 * 邮箱：2235445233@qq.com
 */
public class BeanUtils {

    public static boolean checkObjFieldIsNull(Object obj) throws Exception {

        boolean flag = false;
        for (Field f : obj.getClass().getDeclaredFields()) {
            f.setAccessible(true);
            KLog.e(f.getName());
            if (f.get(obj) == null) {
                flag = true;
                return flag;
            }
        }
        return flag;
    }
}
